//
//  User.m
//  JLStyleApp
//
//  Created by LvJianfeng on 15/8/24.
//  Copyright (c) 2015年 JLStyle. All rights reserved.
//

#import "User.h"

@implementation User
/**
 *  创建用户
 */
+ (BOOL)create:(User *)user{
    BOOL isOK = NO;
    FMDatabase *db = [FMDatabase databaseWithPath:[JLInitialize databaseFilePath]];
    if (db) {
        [db open];
        isOK = [db executeUpdate:@"insert into JL_User(phone, password) values (? , ?)", user.phone, user.password];
        [db close];
    }
    return isOK;
}
@end
